cmake_minimum_required(VERSION 3.10)

project(mpp_encoder)

find_package(OpenCV REQUIRED)

add_executable(${PROJECT_NAME} main.cc)

target_link_libraries(${PROJECT_NAME} rockchip_mpp ${OpenCV_LIBS})
target_include_directories(${PROJECT_NAME} PRIVATE ${OpenCV_INCLUDE_DIRS})

add_executable(${PROJECT_NAME}_mjpeg mjpeg.cc)
target_link_libraries(${PROJECT_NAME}_mjpeg rockchip_mpp ${OpenCV_LIBS})
target_include_directories(${PROJECT_NAME}_mjpeg PRIVATE ${OpenCV_INCLUDE_DIRS})
